package com.baijiaoxi.common.model.headerfiller;

import com.baijiaoxi.common.model.aspect.HeaderName;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;

@Target(ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface HeaderReflect {
    /**
     * 是否总是生效
     * true 总是生效
     * false field属性为null时才生效
     *
     * @return
     */
    boolean always() default true;

    HeaderName value() default HeaderName.WeAppId;

    String header() default "";

    String field() default "";
}
